﻿namespace Kyoh.App.Crawler.Contents
{
    class Loaders : SeedListComponent<Loader>
    {
        public Loaders()
            : base(LoadersSaveName)
        {
        }

        public const string LoadersSaveName = "Loaders.dat";

        protected override void RunCore(Loader seed)
        {
            seed.Download(Properties.Settings.Default.DownloadPath);
        }

        protected override void Cancel(Loader seed)
        {
            seed.CancelDownload();
        }
    }
}